<?php

namespace app\index\validate;

use app\common\validate\BaseValidate;

class LoginValidate extends BaseValidate
{
    protected $rule = [
        "login_tel|手机" => 'require',
        "login_type|登录类型" => 'require',
        "login_password|密码" => 'requireIf:login_type,password',
        "login_code|验证码" => 'requireIf:login_type,code',
    ];
    
    protected $message = [
    ];
    
    
    protected $scene = [
        "login" => ["login_tel","login_type","login_password","login_code"],
    ];
}